package com.ruoyi.reunion.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动对象 activity
 *
 * @author ccccc
 * @date 2025-04-11
 */
public class Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动ID */
    private Long id;

    /** 关联预约ID */
    @Excel(name = "关联预约ID")
    private Long reservationId;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String activityName;

    /** 活动描述 */
    @Excel(name = "活动描述")
    private String description;

    /** 活动日程 */
    @Excel(name = "活动日程")
    private String schedule;

    /** 预算 */
    @Excel(name = "预算")
    private BigDecimal budget;

    /** 状态：0-筹备中，1-进行中，2-已结束 */
    @Excel(name = "状态：0-筹备中，1-进行中，2-已结束")
    private Long status;

    /** 活动进度（0-100） */
    @Excel(name = "活动进度", readConverterExp = "0=-100")
    private Long progress;

    /** 组织者 */
    @Excel(name = "组织者")
    private String organizer;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contact;

    /** 最大参与人数 */
    @Excel(name = "最大参与人数")
    private Long maxParticipants;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setReservationId(Long reservationId)
    {
        this.reservationId = reservationId;
    }

    public Long getReservationId()
    {
        return reservationId;
    }
    public void setActivityName(String activityName)
    {
        this.activityName = activityName;
    }

    public String getActivityName()
    {
        return activityName;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setSchedule(String schedule)
    {
        this.schedule = schedule;
    }

    public String getSchedule()
    {
        return schedule;
    }
    public void setBudget(BigDecimal budget)
    {
        this.budget = budget;
    }

    public BigDecimal getBudget()
    {
        return budget;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setProgress(Long progress)
    {
        this.progress = progress;
    }

    public Long getProgress()
    {
        return progress;
    }
    public void setOrganizer(String organizer)
    {
        this.organizer = organizer;
    }

    public String getOrganizer()
    {
        return organizer;
    }
    public void setContact(String contact)
    {
        this.contact = contact;
    }

    public String getContact()
    {
        return contact;
    }
    public void setMaxParticipants(Long maxParticipants)
    {
        this.maxParticipants = maxParticipants;
    }

    public Long getMaxParticipants()
    {
        return maxParticipants;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("reservationId", getReservationId())
                .append("activityName", getActivityName())
                .append("description", getDescription())
                .append("schedule", getSchedule())
                .append("budget", getBudget())
                .append("status", getStatus())
                .append("progress", getProgress())
                .append("organizer", getOrganizer())
                .append("contact", getContact())
                .append("maxParticipants", getMaxParticipants())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .toString();
    }
}
